package com.itqf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * projectName: springmvcgp8
 *
 * @author: 赵伟风
 * time: 2021/8/5 15:02
 * description:
 */
@Controller
@RequestMapping("mvc")
public class IndexController {

    /**
     * handlerMapping   mvc/hello::hello()
     * @return
     */
    @GetMapping("hello")
    @ResponseBody
    public String hello(){
        System.out.println("IndexController.hello");
        return "hello springmvc!!!";
    }

}
